package net.esj.basic.plugins.spring.factory.xml;

import net.esj.basic.plugins.spring.factory.xml.parser.DaoProxyBeanDefinitionParser;
import net.esj.basic.plugins.spring.factory.xml.parser.SupportBeanDefinitionParser;
import net.esj.basic.plugins.spring.factory.xml.parser.HibernateSessionLocaleBeanDefinitionParser;
import net.esj.basic.plugins.spring.factory.xml.parser.HibernateSourceLocaleBeanDefinitionParser;
import net.esj.basic.plugins.spring.factory.xml.parser.JdbcSourceBeanDefinitionParser;
import net.esj.basic.plugins.spring.factory.xml.parser.SourceLocaleBeanDefinitionParser;

import org.springframework.beans.factory.xml.NamespaceHandlerSupport;

public class MelonNamespaceHandler extends NamespaceHandlerSupport {

	@Override
	public void init() {
		//registerBeanDefinitionParser("dao", parser)
		registerBeanDefinitionParser("support", new SupportBeanDefinitionParser());
//		registerBeanDefinitionParser("hibernateSource", new HibernateSourceLocaleBeanDefinitionParser());
//		registerBeanDefinitionParser("hibernateSession", new HibernateSessionLocaleBeanDefinitionParser());
//		registerBeanDefinitionParser("jdbcSource", new JdbcSourceBeanDefinitionParser());
//		registerBeanDefinitionParser("daoProxy", new DaoProxyBeanDefinitionParser());
//		registerBeanDefinitionParser("source", new SourceLocaleBeanDefinitionParser());
	}

}
